package com.example.demo.aop.monitor;

/**
 * Created by tangxinmao on 2017/3/13.
 * 自定义异常
 */
public class MyException extends  RuntimeException {
    private    int code;
    private  String msg;

    public MyException(int code) {
        this.code = code;
    }

    public MyException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
